package com.briup.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient("bstore-user")
public interface UserClient {

    @GetMapping("/users/getBalance")
    BigDecimal getBalance();

    @PutMapping("/users/updateBalance")
    void updateBalance(@RequestBody BigDecimal newBalance);
}
